const assert = require('assert');
const { sum, filter } = require('../code/app')
describe('#app.js', () => {
    describe('#sum()', () => {
        it('sum() should return 0', () => {
            assert.strictEqual(sum(), 0);
        });

        it('sum(1) should return 1', () => {
            assert.strictEqual(sum(1), 1);
        });

        it('sum(1, 2) should return 3', () => {
            assert.strictEqual(sum(1, 2), 3);
        });

        it('sum(1, 2, 3) should return 6', () => {
            assert.strictEqual(sum(1, 2, 3), 6);
        });
        describe('#filter', () => {
            it('', () => {
                assert.strictEqual(filter([1, 2, 3, 4, 5, 5, 6, 7], i => i < 4), [1, 2, 3])
            })
        })
    });
});